// 商品相关
import { handleActions as createReducer } from 'redux-actions'
import { saveProducts } from '../actions/product.action'

// 默认数据
const initialState = []

const handleSaveProducts = (state, action) => action.payload

export default createReducer({
    // 将商品列表数据保存到本地的 store 对象中
    [saveProducts]: handleSaveProducts
}, initialState)